public class Student {
    private String studentId, name, className;

    public Student(String studentId, String name, String className) {
        this.studentId = studentId;
        this.name = name;
        this.className = className;
    }

    public String getStudentId() { return studentId; }
    public String getName() { return name; }
    public String getClassName() { return className; }

    @Override
    public String toString() {
        return "学号: " + studentId + ", 姓名: " + name + ", 班级: " + className;
    }
}